package com.zdft.promotion.common.vo;

import java.util.List;

/**
 * 接口层对象：列表结果集
 */
public class QueryResultVO<T> {
    /**
     * 总记录数
     */
    private long total;

    /**
     * 列表行
     */
    private List<T> rows;

    public QueryResultVO(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public List<T> getRows() {
        return rows;
    }
}
